package com.yugao.fintech.draper.redisson.resolver;

import com.yugao.fintech.draper.redisson.annotation.DistributedLock;
import com.yugao.fintech.draper.redisson.entity.LockEntity;
import org.aspectj.lang.ProceedingJoinPoint;

public interface DistributedLockResolver {

	/**
	 * 解析一个分布式锁信息
	 * @param distributedLock 分布式锁注解
	 * @param joinPoint AOP 切面
	 * @return 锁信息
	 */
	LockEntity resolver(ProceedingJoinPoint joinPoint, DistributedLock distributedLock);

}
